{#<!DOCTYPE html>#}
{#<html lang="en">#}
{#<head>#}
{#    <meta charset="UTF-8">#}
{#    <title>{% block title %}{% endblock %}</title>#}
{#    <link rel="stylesheet" href="{{ url_for('static',filename='bootstrap/bootstrap4.6.1.min.css') }}">#}
{#    <script src="{{ url_for('static', filename='bootstrap/jquery.slim.min.js') }}"></script>#}
{#    <script src="{{ url_for('static', filename='bootstrap/popper.min.js') }}"></script>#}
{#    <script src="{{ url_for('static', filename='bootstrap/bootstrap.min.js') }}"></script>#}
{#    <script src="{{ url_for('static', filename='bootstrap/bootstrap.bundle.min.js') }}"></script>#}
{#    {% block head %}#}
{##}
{#    {% endblock %}#}
{#</head>#}
{#<body>#}
{#<nav class="navbar navbar-expand-lg navbar-dark bg-dark ">#}
{#    <a class="navbar-brand">图书管理系统</a>#}
{#    <div class="collapse navbar-collapse" id="navbarSupportedContent">#}
{#        <ul class="navbar-nav mr-auto">#}
{#            <li class="nav-item active">#}
{#                <a class="nav-link" href="{{ url_for('base.index') }}">首页 </a>#}
{#            </li>#}
{#        </ul>#}
{#        <ul class="navbar-nav">#}
{#            <li class="nav-item">#}
{#                <a class="nav-link" href="{{ url_for('user.login') }}">登录</a>#}
{#            </li>#}
{#            <li class="nav-item">#}
{#                <a class="nav-link" href="{{ url_for('user.register') }}">注册</a>#}
{#            </li>#}
{##}
{#        </ul>#}
{#    </div>#}
{##}
{#</nav>#}
{##}
{#    {% block body %}#}
{##}
{#    {% endblock %}#}
{##}
{#</body>#}
{#</html>#}
{##}


<!DOCTYPE HTML>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>{% block title %}{% endblock %}</title>
    <link rel="stylesheet" type="text/css" href="{{ url_for('static',filename='css/user&admin.css') }}">
    <script src="{{ url_for('static', filename='js/jquery-3.1.1.min.js') }}"></script>
    <script src="{{ url_for('static', filename='js/admin.js') }}"></script>
    {% block head %}#}{% endblock %}
</head>
<body>
<header>
    <div class="title ">
        <span>金虎图书</span>
    </div>
    <nav>
        <div class="userinfo">
            <ul>
                {% if user %}
                    <li><a href="">{{ user.name }}</a></li>
                    <li><a href="{{ url_for('user.logout') }}">退出登录</a></li>
                    <li><a href="{{ url_for('base.index') }}">首页 </a></li>
                {% else %}
                    <li><a href="{{ url_for('user.login') }}">登录</a></li>
                    <li><a href="{{ url_for('user.register') }}">注册</a></li>
                    <li><a href="{{ url_for('base.index') }}">首页 </a></li>
                {% endif %}
            </ul>
        </div>
    </nav>
</header>
{% block body %}{% endblock %}
</body>
</html>

